import request from '@/utils/request'

export function getSignRecords(params) {
    return request({
        url: '/member/sign-in/record/page',
        method: 'get',
        params: params
    })
}
export function sign(time) {
    return request({
        url: '/member/sign-in/record/create',
        method: 'post',
        params: {
            time: time
        }
    })
}

export function validateTodayIsSign() {
    return request({
        url: '/member/sign-in/record/get-summary',
        method: 'get',
    })
}

export function getSignInConfigList() {
    return request({
        url: '/member/sign-in/config/list',
        method: 'get',
    })
}

export function getUserPointRanking() {
    return request({
        url: '/member/user/getUserByPointDesc',
        method: 'get',
    })
}

export function getUserByLevelDesc() {
    return request({
        url: '/member/user/getUserByLevelDesc',
        method: 'get',
    })
}
